.class Les/lj$b;
.super Ljava/lang/Object;
.source "NanoHTTPD.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/lj;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "b"
.end annotation


# instance fields
.field private a:Ljava/net/Socket;

.field final synthetic b:Les/lj;


# direct methods
.method public constructor <init>(Les/lj;Ljava/net/Socket;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/lj$b;->b:Les/lj;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p2, p0, Les/lj$b;->a:Ljava/net/Socket;

    .line 3
    new-instance p1, Ljava/lang/Thread;

    invoke-direct {p1, p0}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    const/4 p2, 0x1

    .line 4
    invoke-virtual {p1, p2}, Ljava/lang/Thread;->setDaemon(Z)V

    .line 5
    invoke-virtual {p1}, Ljava/lang/Thread;->start()V

    return-void
.end method

.method private a([BI)I
    .locals 3

    .line 76
    :goto_0
    array-length v0, p1

    if-ge p2, v0, :cond_1

    .line 77
    aget-byte v0, p1, p2

    const/16 v1, 0xd

    if-ne v0, v1, :cond_0

    add-int/lit8 p2, p2, 0x1

    aget-byte v0, p1, p2

    const/16 v2, 0xa

    if-ne v0, v2, :cond_0

    add-int/lit8 p2, p2, 0x1

    aget-byte v0, p1, p2

    if-ne v0, v1, :cond_0

    add-int/lit8 p2, p2, 0x1

    aget-byte v0, p1, p2

    if-ne v0, v2, :cond_0

    goto :goto_1

    :cond_0
    add-int/lit8 p2, p2, 0x1

    goto :goto_0

    :cond_1
    :goto_1
    add-int/lit8 p2, p2, 0x1

    return p2
.end method

.method private a(Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/InterruptedException;
        }
    .end annotation

    .line 78
    :try_start_0
    invoke-static {p1}, Landroid/net/Uri;->decode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    const-string p1, "400 Bad Request"

    const-string v0, "BAD REQUEST: Bad percent-encoding."

    .line 79
    invoke-direct {p0, p1, v0}, Les/lj$b;->a(Ljava/lang/String;Ljava/lang/String;)V

    const/4 p1, 0x0

    throw p1
.end method

.method private a([BII)Ljava/lang/String;
    .locals 4

    const-string v0, ""

    if-lez p3, :cond_0

    const-string v1, "java.io.tmpdir"

    .line 69
    invoke-static {v1}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :try_start_0
    const-string v2, "NanoHTTPD"

    .line 70
    new-instance v3, Ljava/io/File;

    invoke-direct {v3, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {v2, v0, v3}, Ljava/io/File;->createTempFile(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;

    move-result-object v1

    .line 71
    new-instance v2, Ljava/io/FileOutputStream;

    invoke-direct {v2, v1}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V

    .line 72
    invoke-virtual {v2, p1, p2, p3}, Ljava/io/OutputStream;->write([BII)V

    .line 73
    invoke-virtual {v2}, Ljava/io/OutputStream;->close()V

    .line 74
    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 75
    sget-object p2, Ljava/lang/System;->err:Ljava/io/PrintStream;

    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Error: "

    invoke-virtual {p3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    :cond_0
    :goto_0
    return-object v0
.end method

.method private a(Ljava/io/BufferedReader;Ljava/util/Properties;Ljava/util/Properties;Ljava/util/Properties;)V
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/InterruptedException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-virtual {p1}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v1

    if-nez v1, :cond_0

    return-void

    .line 2
    :cond_0
    new-instance v2, Ljava/util/StringTokenizer;

    invoke-direct {v2, v1}, Ljava/util/StringTokenizer;-><init>(Ljava/lang/String;)V

    .line 3
    invoke-virtual {v2}, Ljava/util/StringTokenizer;->hasMoreTokens()Z

    move-result v3
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    const-string v4, "400 Bad Request"

    if-eqz v3, :cond_7

    .line 4
    :try_start_1
    invoke-virtual {v2}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;

    move-result-object v3

    const-string v5, "method"

    .line 5
    invoke-virtual {p2, v5, v3}, Ljava/util/Properties;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 6
    invoke-virtual {v2}, Ljava/util/StringTokenizer;->hasMoreTokens()Z

    move-result v5

    if-eqz v5, :cond_6

    .line 7
    invoke-virtual {v1, v3}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    add-int/2addr v4, v3

    add-int/lit8 v4, v4, 0x1

    const-string v3, "HTTP/1"

    .line 8
    invoke-virtual {v1, v3}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v3

    add-int/lit8 v3, v3, -0x1

    if-gez v3, :cond_1

    const-string v3, "http/1"

    .line 9
    invoke-virtual {v1, v3}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v3

    add-int/lit8 v3, v3, -0x1

    :cond_1
    if-lez v3, :cond_2

    .line 10
    invoke-virtual {v1, v4, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    .line 11
    invoke-virtual {v2}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;

    goto :goto_0

    .line 12
    :cond_2
    invoke-virtual {v2}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;

    move-result-object v1

    :goto_0
    const/16 v3, 0x3f

    .line 13
    invoke-virtual {v1, v3}, Ljava/lang/String;->indexOf(I)I

    move-result v3

    const/4 v4, 0x0

    if-ltz v3, :cond_3

    add-int/lit8 v5, v3, 0x1

    .line 14
    invoke-virtual {v1, v5}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v5

    invoke-direct {p0, v5, p3}, Les/lj$b;->a(Ljava/lang/String;Ljava/util/Properties;)V

    .line 15
    invoke-virtual {v1, v4, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p3

    invoke-direct {p0, p3}, Les/lj$b;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    goto :goto_1

    .line 16
    :cond_3
    invoke-direct {p0, v1}, Les/lj$b;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    .line 17
    :goto_1
    invoke-virtual {v2}, Ljava/util/StringTokenizer;->hasMoreTokens()Z

    move-result v1

    if-eqz v1, :cond_5

    .line 18
    invoke-virtual {p1}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v1

    :goto_2
    if-eqz v1, :cond_5

    .line 19
    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_5

    const/16 v2, 0x3a

    .line 20
    invoke-virtual {v1, v2}, Ljava/lang/String;->indexOf(I)I

    move-result v2

    if-ltz v2, :cond_4

    .line 21
    invoke-virtual {v1, v4, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v3

    add-int/lit8 v2, v2, 0x1

    invoke-virtual {v1, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p4, v3, v1}, Ljava/util/Properties;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 22
    :cond_4
    invoke-virtual {p1}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v1

    goto :goto_2

    :cond_5
    const-string p1, "uri"

    .line 23
    invoke-virtual {p2, p1, p3}, Ljava/util/Properties;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-void

    :cond_6
    const-string p1, "BAD REQUEST: Missing URI. Usage: GET /example/file.html"

    .line 24
    invoke-direct {p0, v4, p1}, Les/lj$b;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0

    throw v0

    :cond_7
    :try_start_2
    const-string p1, "BAD REQUEST: Syntax error. Usage: GET /example/file.html"

    .line 25
    invoke-direct {p0, v4, p1}, Les/lj$b;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

    throw v0

    :catch_0
    move-exception p1

    .line 26
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string p3, "SERVER INTERNAL ERROR: IOException: "

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string p2, "500 Internal Server Error"

    invoke-direct {p0, p2, p1}, Les/lj$b;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_4

    :goto_3
    throw v0

    :goto_4
    goto :goto_3
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/InterruptedException;
        }
    .end annotation

    .line 87
    new-instance v0, Ljava/io/ByteArrayInputStream;

    invoke-virtual {p2}, Ljava/lang/String;->getBytes()[B

    move-result-object p2

    invoke-direct {v0, p2}, Ljava/io/ByteArrayInputStream;-><init>([B)V

    const-string p2, "text/plain"

    const/4 v1, 0x0

    invoke-direct {p0, p1, p2, v1, v0}, Les/lj$b;->a(Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;Ljava/io/InputStream;)V

    .line 88
    new-instance p1, Ljava/lang/InterruptedException;

    invoke-direct {p1}, Ljava/lang/InterruptedException;-><init>()V

    throw p1
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;Ljava/io/InputStream;)V
    .locals 7

    .line 89
    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Thread;->getId()J

    const/4 v0, 0x1

    const/4 v1, 0x0

    .line 90
    :try_start_0
    invoke-static {v1, v0}, Lcom/estrongs/android/util/m;->a(ZZ)V

    if-eqz p1, :cond_6

    .line 91
    iget-object v2, p0, Les/lj$b;->a:Ljava/net/Socket;

    invoke-virtual {v2}, Ljava/net/Socket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v2

    .line 92
    new-instance v3, Ljava/io/PrintWriter;

    invoke-direct {v3, v2}, Ljava/io/PrintWriter;-><init>(Ljava/io/OutputStream;)V

    .line 93
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "HTTP/1.0 "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, " \r\n"

    invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const-string p1, "\r\n"

    if-eqz p2, :cond_0

    .line 94
    :try_start_1
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "Content-Type: "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V

    :cond_0
    if-eqz p3, :cond_1

    const-string p2, "Date"

    .line 95
    invoke-virtual {p3, p2}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    if-nez p2, :cond_2

    .line 96
    :cond_1
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Date: "

    invoke-virtual {p2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Les/lj;->c()Ljava/text/SimpleDateFormat;

    move-result-object v4

    new-instance v5, Ljava/util/Date;

    invoke-direct {v5}, Ljava/util/Date;-><init>()V

    invoke-virtual {v4, v5}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v3, p2}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V

    :cond_2
    if-eqz p3, :cond_3

    .line 97
    invoke-virtual {p3}, Ljava/util/Properties;->keys()Ljava/util/Enumeration;

    move-result-object p2

    .line 98
    :goto_0
    invoke-interface {p2}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v4

    if-eqz v4, :cond_3

    .line 99
    invoke-interface {p2}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    .line 100
    invoke-virtual {p3, v4}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 101
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, ": "

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V

    goto :goto_0

    .line 102
    :cond_3
    invoke-virtual {v3, p1}, Ljava/io/PrintWriter;->print(Ljava/lang/String;)V

    .line 103
    invoke-virtual {v3}, Ljava/io/PrintWriter;->flush()V

    if-eqz p4, :cond_5

    const/high16 p1, 0x10000

    new-array p2, p1, [B

    .line 104
    :goto_1
    invoke-virtual {p4, p2, v1, p1}, Ljava/io/InputStream;->read([BII)I

    move-result p3

    if-gtz p3, :cond_4

    goto :goto_2

    .line 105
    :cond_4
    invoke-virtual {v2, p2, v1, p3}, Ljava/io/OutputStream;->write([BII)V

    goto :goto_1

    .line 106
    :cond_5
    :goto_2
    invoke-virtual {v2}, Ljava/io/OutputStream;->flush()V

    .line 107
    invoke-virtual {v2}, Ljava/io/OutputStream;->close()V

    if-eqz p4, :cond_8

    .line 108
    invoke-virtual {p4}, Ljava/io/InputStream;->close()V

    goto :goto_5

    .line 109
    :cond_6
    new-instance p1, Ljava/lang/Error;

    const-string p2, "sendResponse(): Status can\'t be null."

    invoke-direct {p1, p2}, Ljava/lang/Error;-><init>(Ljava/lang/String;)V

    throw p1
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :catchall_0
    move-exception p1

    goto :goto_3

    :catch_0
    nop

    if-eqz p4, :cond_7

    .line 110
    :try_start_2
    invoke-virtual {p4}, Ljava/io/InputStream;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_4

    .line 111
    :goto_3
    invoke-static {v1, v0}, Lcom/estrongs/android/util/m;->d(ZZ)V

    .line 112
    throw p1

    .line 113
    :catch_1
    :cond_7
    :goto_4
    :try_start_3
    iget-object p1, p0, Les/lj$b;->a:Ljava/net/Socket;

    invoke-virtual {p1}, Ljava/net/Socket;->close()V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    .line 114
    :catchall_1
    :cond_8
    :goto_5
    invoke-static {v1, v0}, Lcom/estrongs/android/util/m;->d(ZZ)V

    return-void
.end method

.method private a(Ljava/lang/String;Ljava/util/Properties;)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/InterruptedException;
        }
    .end annotation

    if-nez p1, :cond_0

    return-void

    .line 80
    :cond_0
    new-instance v0, Ljava/util/StringTokenizer;

    const-string v1, "&"

    invoke-direct {v0, p1, v1}, Ljava/util/StringTokenizer;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 81
    :cond_1
    :goto_0
    invoke-virtual {v0}, Ljava/util/StringTokenizer;->hasMoreTokens()Z

    move-result p1

    if-eqz p1, :cond_2

    .line 82
    invoke-virtual {v0}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;

    move-result-object p1

    const/16 v1, 0x3d

    .line 83
    invoke-virtual {p1, v1}, Ljava/lang/String;->indexOf(I)I

    move-result v1

    if-ltz v1, :cond_1

    const/4 v2, 0x0

    .line 84
    invoke-virtual {p1, v2, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v2}, Les/lj$b;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    add-int/lit8 v1, v1, 0x1

    .line 85
    invoke-virtual {p1, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p1}, Les/lj$b;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 86
    invoke-virtual {p2, v2, p1}, Ljava/util/Properties;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    :cond_2
    return-void
.end method

.method private a(Ljava/lang/String;[BLjava/io/BufferedReader;Ljava/util/Properties;Ljava/util/Properties;)V
    .locals 17
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/InterruptedException;
        }
    .end annotation

    move-object/from16 v1, p0

    move-object/from16 v0, p1

    move-object/from16 v2, p2

    const-string v3, "500 Internal Server Error"

    .line 27
    :try_start_0
    invoke-virtual/range {p1 .. p1}, Ljava/lang/String;->getBytes()[B

    move-result-object v5

    invoke-virtual {v1, v2, v5}, Les/lj$b;->a([B[B)Ljava/util/List;

    move-result-object v5

    .line 28
    invoke-virtual/range {p3 .. p3}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v6

    const/4 v7, 0x1

    const/4 v8, 0x1

    :goto_0
    if-eqz v6, :cond_e

    .line 29
    invoke-virtual {v6, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v6
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    const-string v9, "400 Bad Request"

    const/4 v10, -0x1

    if-eq v6, v10, :cond_d

    add-int/2addr v8, v7

    .line 30
    :try_start_1
    new-instance v6, Ljava/util/Properties;

    invoke-direct {v6}, Ljava/util/Properties;-><init>()V

    .line 31
    invoke-virtual/range {p3 .. p3}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v11

    :goto_1
    const/4 v12, 0x0

    if-eqz v11, :cond_1

    .line 32
    invoke-virtual {v11}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/String;->length()I

    move-result v13

    if-lez v13, :cond_1

    const/16 v13, 0x3a

    .line 33
    invoke-virtual {v11, v13}, Ljava/lang/String;->indexOf(I)I

    move-result v13

    if-eq v13, v10, :cond_0

    .line 34
    invoke-virtual {v11, v12, v13}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v12}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v12

    add-int/lit8 v13, v13, 0x1

    invoke-virtual {v11, v13}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v6, v12, v11}, Ljava/util/Properties;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 35
    :cond_0
    invoke-virtual/range {p3 .. p3}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v11

    goto :goto_1

    :cond_1
    if-eqz v11, :cond_c

    const-string v13, "content-disposition"

    .line 36
    invoke-virtual {v6, v13}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    if-eqz v13, :cond_b

    .line 37
    new-instance v9, Ljava/util/StringTokenizer;

    const-string v14, "; "

    invoke-direct {v9, v13, v14}, Ljava/util/StringTokenizer;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 38
    new-instance v13, Ljava/util/Properties;

    invoke-direct {v13}, Ljava/util/Properties;-><init>()V

    .line 39
    :cond_2
    :goto_2
    invoke-virtual {v9}, Ljava/util/StringTokenizer;->hasMoreTokens()Z

    move-result v14

    if-eqz v14, :cond_3

    .line 40
    invoke-virtual {v9}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;

    move-result-object v14

    const/16 v15, 0x3d

    .line 41
    invoke-virtual {v14, v15}, Ljava/lang/String;->indexOf(I)I

    move-result v15

    if-eq v15, v10, :cond_2

    .line 42
    invoke-virtual {v14, v12, v15}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    add-int/lit8 v15, v15, 0x1

    invoke-virtual {v14, v15}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v4, v14}, Ljava/util/Properties;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_2

    :cond_3
    const-string v4, "name"

    .line 43
    invoke-virtual {v13, v4}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 44
    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v9

    sub-int/2addr v9, v7

    invoke-virtual {v4, v7, v9}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v4

    const-string v9, ""

    const-string v14, "content-type"

    .line 45
    invoke-virtual {v6, v14}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    if-nez v6, :cond_7

    :cond_4
    :goto_3
    if-eqz v11, :cond_6

    .line 46
    invoke-virtual {v11, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v6

    if-ne v6, v10, :cond_6

    .line 47
    invoke-virtual/range {p3 .. p3}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v11

    if-eqz v11, :cond_4

    .line 48
    invoke-virtual {v11, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v6

    if-ne v6, v10, :cond_5

    .line 49
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    :goto_4
    move-object v9, v6

    goto :goto_3

    .line 50
    :cond_5
    new-instance v13, Ljava/lang/StringBuilder;

    invoke-direct {v13}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v13, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    add-int/lit8 v6, v6, -0x2

    invoke-virtual {v11, v12, v6}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v13, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    goto :goto_4

    :cond_6
    move-object/from16 v10, p4

    move-object v6, v9

    move-object/from16 v9, p5

    goto :goto_5

    .line 51
    :cond_7
    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v6

    if-gt v8, v6, :cond_a

    add-int/lit8 v6, v8, -0x2

    .line 52
    invoke-interface {v5, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/Integer;

    invoke-virtual {v6}, Ljava/lang/Integer;->intValue()I

    move-result v6

    invoke-direct {v1, v2, v6}, Les/lj$b;->a([BI)I

    move-result v6

    add-int/lit8 v9, v8, -0x1

    .line 53
    invoke-interface {v5, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Ljava/lang/Integer;

    invoke-virtual {v9}, Ljava/lang/Integer;->intValue()I

    move-result v9

    sub-int/2addr v9, v6

    add-int/lit8 v9, v9, -0x4

    invoke-direct {v1, v2, v6, v9}, Les/lj$b;->a([BII)Ljava/lang/String;

    move-result-object v6

    move-object/from16 v9, p5

    .line 54
    invoke-virtual {v9, v4, v6}, Ljava/util/Properties;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v6, "filename"

    .line 55
    invoke-virtual {v13, v6}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 56
    invoke-virtual {v6}, Ljava/lang/String;->length()I

    move-result v11

    sub-int/2addr v11, v7

    invoke-virtual {v6, v7, v11}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v6

    .line 57
    :cond_8
    invoke-virtual/range {p3 .. p3}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v11

    if-eqz v11, :cond_9

    .line 58
    invoke-virtual {v11, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v12

    if-eq v12, v10, :cond_8

    :cond_9
    move-object/from16 v10, p4

    .line 59
    :goto_5
    invoke-virtual {v10, v4, v6}, Ljava/util/Properties;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_6

    :cond_a
    const-string v0, "Error processing request"

    .line 60
    invoke-direct {v1, v3, v0}, Les/lj$b;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0

    const/4 v2, 0x0

    throw v2

    :cond_b
    :try_start_2
    const-string v0, "BAD REQUEST: Content type is multipart/form-data but no content-disposition info found. Usage: GET /example/file.html"

    .line 61
    invoke-direct {v1, v9, v0}, Les/lj$b;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

    const/4 v2, 0x0

    throw v2

    :cond_c
    move-object/from16 v10, p4

    move-object/from16 v9, p5

    :goto_6
    move-object v6, v11

    goto/16 :goto_0

    :cond_d
    :try_start_3
    const-string v0, "BAD REQUEST: Content type is multipart/form-data but next chunk does not start with boundary. Usage: GET /example/file.html"

    .line 62
    invoke-direct {v1, v9, v0}, Les/lj$b;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0

    const/4 v2, 0x0

    throw v2

    :cond_e
    return-void

    :catch_0
    move-exception v0

    .line 63
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "SERVER INTERNAL ERROR: IOException: "

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v3, v0}, Les/lj$b;->a(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v2, 0x0

    goto :goto_8

    :goto_7
    throw v2

    :goto_8
    goto :goto_7
.end method


# virtual methods
.method public a([B[B)Ljava/util/List;
    .locals 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "([B[B)",
            "Ljava/util/List<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation

    .line 64
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    const/4 v1, -0x1

    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v4, 0x0

    const/4 v5, -0x1

    .line 65
    :goto_0
    array-length v6, p1

    if-ge v3, v6, :cond_3

    .line 66
    aget-byte v6, p1, v3

    aget-byte v7, p2, v4

    if-ne v6, v7, :cond_1

    if-nez v4, :cond_0

    move v5, v3

    :cond_0
    add-int/lit8 v4, v4, 0x1

    .line 67
    array-length v6, p2

    if-ne v4, v6, :cond_2

    .line 68
    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    :cond_1
    sub-int/2addr v3, v4

    :goto_1
    const/4 v4, 0x0

    const/4 v5, -0x1

    :cond_2
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_3
    return-object v0
.end method

.method public run()V
    .locals 21

    move-object/from16 v7, p0

    const/4 v11, 0x0

    .line 1
    :try_start_0
    iget-object v0, v7, Les/lj$b;->a:Ljava/net/Socket;

    invoke-virtual {v0}, Ljava/net/Socket;->getInputStream()Ljava/io/InputStream;

    move-result-object v12

    if-nez v12, :cond_0

    return-void

    :cond_0
    const/16 v0, 0x2000

    new-array v1, v0, [B

    .line 2
    invoke-virtual {v12, v1, v11, v0}, Ljava/io/InputStream;->read([BII)I

    move-result v0

    if-gtz v0, :cond_1

    return-void

    .line 3
    :cond_1
    new-instance v2, Ljava/io/ByteArrayInputStream;

    invoke-direct {v2, v1, v11, v0}, Ljava/io/ByteArrayInputStream;-><init>([BII)V

    .line 4
    new-instance v3, Ljava/io/BufferedReader;

    new-instance v4, Ljava/io/InputStreamReader;

    invoke-direct {v4, v2}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

    invoke-direct {v3, v4}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V

    .line 5
    new-instance v2, Ljava/util/Properties;

    invoke-direct {v2}, Ljava/util/Properties;-><init>()V

    .line 6
    new-instance v15, Ljava/util/Properties;

    invoke-direct {v15}, Ljava/util/Properties;-><init>()V

    .line 7
    new-instance v14, Ljava/util/Properties;

    invoke-direct {v14}, Ljava/util/Properties;-><init>()V

    .line 8
    new-instance v18, Ljava/util/Properties;

    invoke-direct/range {v18 .. v18}, Ljava/util/Properties;-><init>()V

    .line 9
    invoke-direct {v7, v3, v2, v15, v14}, Les/lj$b;->a(Ljava/io/BufferedReader;Ljava/util/Properties;Ljava/util/Properties;Ljava/util/Properties;)V

    .line 10
    iget-object v3, v7, Les/lj$b;->a:Ljava/net/Socket;

    invoke-virtual {v3}, Ljava/net/Socket;->getInetAddress()Ljava/net/InetAddress;

    move-result-object v3

    invoke-virtual {v3}, Ljava/net/InetAddress;->getHostAddress()Ljava/lang/String;

    move-result-object v13

    const-string v3, "x-es-clientIp-ip"

    .line 11
    invoke-virtual {v14, v3, v13}, Ljava/util/Properties;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v3, "method"

    .line 12
    invoke-virtual {v2, v3}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    const-string v3, "uri"

    .line 13
    invoke-virtual {v2, v3}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v16

    const-string v2, "content-length"

    .line 14
    invoke-virtual {v14, v2}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_b
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_8
    .catchall {:try_start_0 .. :try_end_0} :catchall_6

    const-wide v3, 0x7fffffffffffffffL

    if-eqz v2, :cond_2

    .line 15
    :try_start_1
    invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v2
    :try_end_1
    .catch Ljava/lang/NumberFormatException; {:try_start_1 .. :try_end_1} :catch_2
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    int-to-long v8, v2

    goto :goto_0

    :catchall_0
    move-exception v0

    move-object v1, v0

    goto/16 :goto_12

    :catch_0
    nop

    goto/16 :goto_16

    :catch_1
    move-exception v0

    goto/16 :goto_1a

    :catch_2
    :cond_2
    move-wide v8, v3

    :goto_0
    const/4 v2, 0x0

    :goto_1
    const/16 v17, 0x1

    if-ge v2, v0, :cond_4

    .line 16
    :try_start_2
    aget-byte v5, v1, v2

    const/16 v10, 0xd

    if-ne v5, v10, :cond_3

    add-int/lit8 v2, v2, 0x1

    aget-byte v5, v1, v2

    const/16 v11, 0xa

    if-ne v5, v11, :cond_3

    add-int/lit8 v2, v2, 0x1

    aget-byte v5, v1, v2

    if-ne v5, v10, :cond_3

    add-int/lit8 v2, v2, 0x1

    aget-byte v5, v1, v2
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_3
    .catch Ljava/lang/InterruptedException; {:try_start_2 .. :try_end_2} :catch_9
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    if-ne v5, v11, :cond_3

    const/4 v5, 0x1

    goto :goto_2

    :cond_3
    add-int/lit8 v2, v2, 0x1

    const/4 v11, 0x0

    goto :goto_1

    :catchall_1
    move-exception v0

    goto/16 :goto_11

    :catch_3
    move-exception v0

    goto/16 :goto_19

    :cond_4
    const/4 v5, 0x0

    :goto_2
    add-int/lit8 v2, v2, 0x1

    .line 17
    :try_start_3
    new-instance v10, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v10}, Ljava/io/ByteArrayOutputStream;-><init>()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_b
    .catch Ljava/lang/InterruptedException; {:try_start_3 .. :try_end_3} :catch_8
    .catchall {:try_start_3 .. :try_end_3} :catchall_6

    if-ge v2, v0, :cond_5

    sub-int v11, v0, v2

    .line 18
    :try_start_4
    invoke-virtual {v10, v1, v2, v11}, Ljava/io/ByteArrayOutputStream;->write([BII)V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_3
    .catch Ljava/lang/InterruptedException; {:try_start_4 .. :try_end_4} :catch_9
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    :cond_5
    const-wide/16 v19, 0x0

    if-ge v2, v0, :cond_6

    sub-int v1, v0, v2

    add-int/lit8 v1, v1, 0x1

    int-to-long v1, v1

    sub-long/2addr v8, v1

    goto :goto_3

    :cond_6
    if-eqz v5, :cond_7

    cmp-long v1, v8, v3

    if-nez v1, :cond_8

    :cond_7
    move-wide/from16 v8, v19

    :cond_8
    :goto_3
    const/16 v1, 0x200

    :try_start_5
    new-array v2, v1, [B
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_b
    .catch Ljava/lang/InterruptedException; {:try_start_5 .. :try_end_5} :catch_8
    .catchall {:try_start_5 .. :try_end_5} :catchall_6

    :cond_9
    :goto_4
    if-ltz v0, :cond_a

    cmp-long v0, v8, v19

    if-lez v0, :cond_a

    const/4 v3, 0x0

    .line 19
    :try_start_6
    invoke-virtual {v12, v2, v3, v1}, Ljava/io/InputStream;->read([BII)I

    move-result v0

    int-to-long v4, v0

    sub-long/2addr v8, v4

    if-lez v0, :cond_9

    .line 20
    invoke-virtual {v10, v2, v3, v0}, Ljava/io/ByteArrayOutputStream;->write([BII)V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_3
    .catch Ljava/lang/InterruptedException; {:try_start_6 .. :try_end_6} :catch_9
    .catchall {:try_start_6 .. :try_end_6} :catchall_1

    goto :goto_4

    .line 21
    :cond_a
    :try_start_7
    invoke-virtual {v10}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v3

    .line 22
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-virtual {v10}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v2

    invoke-static {v0, v2}, Les/lj;->a(Les/lj;[B)[B

    .line 23
    new-instance v0, Ljava/io/ByteArrayInputStream;

    invoke-direct {v0, v3}, Ljava/io/ByteArrayInputStream;-><init>([B)V

    .line 24
    new-instance v8, Ljava/io/BufferedReader;

    new-instance v2, Ljava/io/InputStreamReader;

    invoke-direct {v2, v0}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

    invoke-direct {v8, v2}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V

    const-string v0, "POST"

    .line 25
    invoke-virtual {v6, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_10

    const-string v0, ""

    const-string v2, "content-type"

    .line 26
    invoke-virtual {v14, v2}, Ljava/util/Properties;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 27
    new-instance v4, Ljava/util/StringTokenizer;

    const-string v5, "; "

    invoke-direct {v4, v2, v5}, Ljava/util/StringTokenizer;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 28
    invoke-virtual {v4}, Ljava/util/StringTokenizer;->hasMoreTokens()Z

    move-result v2
    :try_end_7
    .catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_b
    .catch Ljava/lang/InterruptedException; {:try_start_7 .. :try_end_7} :catch_8
    .catchall {:try_start_7 .. :try_end_7} :catchall_6

    if-eqz v2, :cond_b

    .line 29
    :try_start_8
    invoke-virtual {v4}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;

    move-result-object v0
    :try_end_8
    .catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_3
    .catch Ljava/lang/InterruptedException; {:try_start_8 .. :try_end_8} :catch_9
    .catchall {:try_start_8 .. :try_end_8} :catchall_1

    :cond_b
    :try_start_9
    const-string v2, "multipart/form-data"

    .line 30
    invoke-virtual {v0, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0
    :try_end_9
    .catch Ljava/io/IOException; {:try_start_9 .. :try_end_9} :catch_b
    .catch Ljava/lang/InterruptedException; {:try_start_9 .. :try_end_9} :catch_8
    .catchall {:try_start_9 .. :try_end_9} :catchall_6

    if-eqz v0, :cond_e

    .line 31
    :try_start_a
    invoke-virtual {v4}, Ljava/util/StringTokenizer;->hasMoreTokens()Z

    move-result v0

    if-eqz v0, :cond_d

    .line 32
    invoke-virtual {v4}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;

    move-result-object v0

    .line 33
    new-instance v1, Ljava/util/StringTokenizer;

    const-string v2, "="

    invoke-direct {v1, v0, v2}, Ljava/util/StringTokenizer;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 34
    invoke-virtual {v1}, Ljava/util/StringTokenizer;->countTokens()I

    move-result v0

    const/4 v2, 0x2

    if-ne v0, v2, :cond_c

    .line 35
    invoke-virtual {v1}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;

    .line 36
    invoke-virtual {v1}, Ljava/util/StringTokenizer;->nextToken()Ljava/lang/String;

    move-result-object v2

    move-object/from16 v1, p0

    move-object v4, v8

    move-object v5, v15

    move-object v9, v6

    move-object/from16 v6, v18

    .line 37
    invoke-direct/range {v1 .. v6}, Les/lj$b;->a(Ljava/lang/String;[BLjava/io/BufferedReader;Ljava/util/Properties;Ljava/util/Properties;)V

    goto :goto_6

    :cond_c
    const-string v0, "400 Bad Request"

    const-string v1, "BAD REQUEST: Content type is multipart/form-data but boundary syntax error. Usage: GET /example/file.html"

    .line 38
    invoke-direct {v7, v0, v1}, Les/lj$b;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_a
    .catch Ljava/io/IOException; {:try_start_a .. :try_end_a} :catch_3
    .catch Ljava/lang/InterruptedException; {:try_start_a .. :try_end_a} :catch_9
    .catchall {:try_start_a .. :try_end_a} :catchall_1

    const/4 v1, 0x0

    throw v1

    :cond_d
    :try_start_b
    const-string v0, "400 Bad Request"

    const-string v1, "BAD REQUEST: Content type is multipart/form-data but boundary missing. Usage: GET /example/file.html"

    .line 39
    invoke-direct {v7, v0, v1}, Les/lj$b;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_b
    .catch Ljava/io/IOException; {:try_start_b .. :try_end_b} :catch_3
    .catch Ljava/lang/InterruptedException; {:try_start_b .. :try_end_b} :catch_9
    .catchall {:try_start_b .. :try_end_b} :catchall_1

    const/4 v1, 0x0

    throw v1

    :cond_e
    move-object v9, v6

    :try_start_c
    const-string v0, ""

    new-array v1, v1, [C

    .line 40
    invoke-virtual {v8, v1}, Ljava/io/BufferedReader;->read([C)I

    move-result v2

    :goto_5
    if-ltz v2, :cond_f

    const-string v3, "\r\n"

    .line 41
    invoke-virtual {v0, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_f

    .line 42
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
    :try_end_c
    .catch Ljava/io/IOException; {:try_start_c .. :try_end_c} :catch_b
    .catch Ljava/lang/InterruptedException; {:try_start_c .. :try_end_c} :catch_8
    .catchall {:try_start_c .. :try_end_c} :catchall_6

    const/4 v4, 0x0

    :try_start_d
    invoke-static {v1, v4, v2}, Ljava/lang/String;->valueOf([CII)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 43
    invoke-virtual {v8, v1}, Ljava/io/BufferedReader;->read([C)I

    move-result v2

    goto :goto_5

    :cond_f
    const/4 v4, 0x0

    .line 44
    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    .line 45
    invoke-direct {v7, v0, v15}, Les/lj$b;->a(Ljava/lang/String;Ljava/util/Properties;)V

    goto :goto_7

    :cond_10
    move-object v9, v6

    :goto_6
    const/4 v4, 0x0

    .line 46
    :goto_7
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    iget-boolean v0, v0, Les/lj;->g:Z

    if-eqz v0, :cond_11

    .line 47
    iget-object v13, v7, Les/lj$b;->b:Les/lj;

    move-object v1, v14

    move-object/from16 v14, v16

    move-object v2, v15

    move-object v15, v9

    move-object/from16 v16, v1

    move-object/from16 v17, v2

    invoke-virtual/range {v13 .. v18}, Les/lj;->a(Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;Ljava/util/Properties;Ljava/util/Properties;)Les/lj$c;

    move-result-object v0

    const/4 v11, 0x0

    goto/16 :goto_e

    :cond_11
    move-object v1, v14

    move-object v2, v15

    .line 48
    invoke-static/range {v16 .. v16}, Lcom/estrongs/android/util/h0;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3
    :try_end_d
    .catch Ljava/io/IOException; {:try_start_d .. :try_end_d} :catch_3
    .catch Ljava/lang/InterruptedException; {:try_start_d .. :try_end_d} :catch_9
    .catchall {:try_start_d .. :try_end_d} :catchall_1

    .line 49
    :try_start_e
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->c(Les/lj;)Ljava/lang/Object;

    move-result-object v5

    monitor-enter v5
    :try_end_e
    .catch Ljava/lang/Exception; {:try_start_e .. :try_end_e} :catch_5
    .catchall {:try_start_e .. :try_end_e} :catchall_1

    if-eqz v3, :cond_15

    .line 50
    :try_start_f
    invoke-static {v3}, Lcom/estrongs/android/pop/netfs/utils/TypeUtils;->isAudioFile(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_12

    invoke-static {v3}, Lcom/estrongs/android/pop/netfs/utils/TypeUtils;->isVideoFile(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_15

    .line 51
    :cond_12
    invoke-static {}, Lcom/estrongs/android/util/o0;->b()Z

    move-result v0

    if-nez v0, :cond_15

    .line 52
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->e(Les/lj;)I
    :try_end_f
    .catchall {:try_start_f .. :try_end_f} :catchall_3

    .line 53
    :try_start_10
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->g(Les/lj;)Lcom/estrongs/android/ui/notification/c;

    move-result-object v0

    if-eqz v0, :cond_13

    .line 54
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->h(Les/lj;)Ljava/util/TimerTask;

    move-result-object v0

    if-eqz v0, :cond_14

    .line 55
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->h(Les/lj;)Ljava/util/TimerTask;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/TimerTask;->cancel()Z

    .line 56
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    const/4 v4, 0x0

    invoke-static {v0, v4}, Les/lj;->a(Les/lj;Ljava/util/TimerTask;)Ljava/util/TimerTask;

    goto :goto_8

    .line 57
    :cond_13
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    new-instance v4, Lcom/estrongs/android/ui/notification/c;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v6

    invoke-direct {v4, v6}, Lcom/estrongs/android/ui/notification/c;-><init>(Landroid/content/Context;)V

    invoke-static {v0, v4}, Les/lj;->a(Les/lj;Lcom/estrongs/android/ui/notification/c;)Lcom/estrongs/android/ui/notification/c;
    :try_end_10
    .catchall {:try_start_10 .. :try_end_10} :catchall_2

    :cond_14
    :goto_8
    const/4 v11, 0x1

    goto :goto_9

    :catchall_2
    move-exception v0

    const/4 v11, 0x1

    goto :goto_a

    :catchall_3
    move-exception v0

    const/4 v11, 0x0

    goto :goto_a

    :cond_15
    const/4 v11, 0x0

    .line 58
    :goto_9
    :try_start_11
    monitor-exit v5

    goto :goto_c

    :catchall_4
    move-exception v0

    :goto_a
    monitor-exit v5
    :try_end_11
    .catchall {:try_start_11 .. :try_end_11} :catchall_4

    :try_start_12
    throw v0
    :try_end_12
    .catch Ljava/lang/Exception; {:try_start_12 .. :try_end_12} :catch_4
    .catchall {:try_start_12 .. :try_end_12} :catchall_0

    :catch_4
    move-exception v0

    goto :goto_b

    :catch_5
    move-exception v0

    const/4 v11, 0x0

    .line 59
    :goto_b
    :try_start_13
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :goto_c
    if-eqz v3, :cond_17

    .line 60
    invoke-static {v3}, Lcom/estrongs/android/util/h0;->U(Ljava/lang/String;)I

    move-result v0

    if-nez v0, :cond_16

    goto :goto_d

    :cond_16
    const-string v0, "127.0.0.1"

    .line 61
    invoke-virtual {v0, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_18

    .line 62
    iget-object v13, v7, Les/lj$b;->b:Les/lj;

    move-object/from16 v14, v16

    move-object v15, v9

    move-object/from16 v16, v1

    move-object/from16 v17, v2

    invoke-virtual/range {v13 .. v18}, Les/lj;->a(Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;Ljava/util/Properties;Ljava/util/Properties;)Les/lj$c;

    move-result-object v0

    goto :goto_e

    .line 63
    :cond_17
    :goto_d
    invoke-static {}, Lcom/estrongs/android/util/o0;->d()Z

    move-result v0

    if-eqz v0, :cond_18

    invoke-static {v13}, Les/lj;->b(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_18

    .line 64
    iget-object v13, v7, Les/lj$b;->b:Les/lj;

    move-object/from16 v14, v16

    move-object v15, v9

    move-object/from16 v16, v1

    move-object/from16 v17, v2

    invoke-virtual/range {v13 .. v18}, Les/lj;->a(Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;Ljava/util/Properties;Ljava/util/Properties;)Les/lj$c;

    move-result-object v0

    goto :goto_e

    :cond_18
    const/4 v0, 0x0

    :goto_e
    if-eqz v0, :cond_1a

    .line 65
    iget-object v1, v0, Les/lj$c;->a:Ljava/lang/String;

    iget-object v2, v0, Les/lj$c;->b:Ljava/lang/String;

    iget-object v3, v0, Les/lj$c;->d:Ljava/util/Properties;

    iget-object v0, v0, Les/lj$c;->c:Ljava/io/InputStream;

    invoke-direct {v7, v1, v2, v3, v0}, Les/lj$b;->a(Ljava/lang/String;Ljava/lang/String;Ljava/util/Properties;Ljava/io/InputStream;)V

    .line 66
    invoke-virtual {v8}, Ljava/io/BufferedReader;->close()V

    .line 67
    invoke-virtual {v12}, Ljava/io/InputStream;->close()V
    :try_end_13
    .catch Ljava/io/IOException; {:try_start_13 .. :try_end_13} :catch_1
    .catch Ljava/lang/InterruptedException; {:try_start_13 .. :try_end_13} :catch_0
    .catchall {:try_start_13 .. :try_end_13} :catchall_0

    if-eqz v11, :cond_1f

    .line 68
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->c(Les/lj;)Ljava/lang/Object;

    move-result-object v1

    monitor-enter v1

    .line 69
    :try_start_14
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->f(Les/lj;)I

    .line 70
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->d(Les/lj;)I

    move-result v0

    if-nez v0, :cond_19

    .line 71
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    new-instance v2, Les/lj$b$a;

    invoke-direct {v2, v7}, Les/lj$b$a;-><init>(Les/lj$b;)V

    invoke-static {v0, v2}, Les/lj;->a(Les/lj;Ljava/util/TimerTask;)Ljava/util/TimerTask;

    .line 72
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->i(Les/lj;)Ljava/util/Timer;

    move-result-object v0

    iget-object v2, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v2}, Les/lj;->h(Les/lj;)Ljava/util/TimerTask;

    move-result-object v2

    const-wide/16 v3, 0xbb8

    invoke-virtual {v0, v2, v3, v4}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V
    :try_end_14
    .catch Ljava/lang/Exception; {:try_start_14 .. :try_end_14} :catch_6
    .catchall {:try_start_14 .. :try_end_14} :catchall_5

    goto :goto_f

    :catchall_5
    move-exception v0

    goto :goto_10

    :catch_6
    move-exception v0

    .line 73
    :try_start_15
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 74
    :cond_19
    :goto_f
    monitor-exit v1

    goto/16 :goto_1d

    :goto_10
    monitor-exit v1
    :try_end_15
    .catchall {:try_start_15 .. :try_end_15} :catchall_5

    throw v0

    :cond_1a
    :try_start_16
    const-string v0, "500 Internal Server Error"

    const-string v1, "SERVER INTERNAL ERROR: Serve() returned a null response."

    .line 75
    invoke-direct {v7, v0, v1}, Les/lj$b;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_16
    .catch Ljava/io/IOException; {:try_start_16 .. :try_end_16} :catch_1
    .catch Ljava/lang/InterruptedException; {:try_start_16 .. :try_end_16} :catch_0
    .catchall {:try_start_16 .. :try_end_16} :catchall_0

    const/4 v1, 0x0

    throw v1

    :catchall_6
    move-exception v0

    const/4 v4, 0x0

    :goto_11
    move-object v1, v0

    const/4 v11, 0x0

    :goto_12
    if-eqz v11, :cond_1c

    .line 76
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->c(Les/lj;)Ljava/lang/Object;

    move-result-object v2

    monitor-enter v2

    .line 77
    :try_start_17
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->f(Les/lj;)I

    .line 78
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->d(Les/lj;)I

    move-result v0

    if-nez v0, :cond_1b

    .line 79
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    new-instance v3, Les/lj$b$a;

    invoke-direct {v3, v7}, Les/lj$b$a;-><init>(Les/lj$b;)V

    invoke-static {v0, v3}, Les/lj;->a(Les/lj;Ljava/util/TimerTask;)Ljava/util/TimerTask;

    .line 80
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->i(Les/lj;)Ljava/util/Timer;

    move-result-object v0

    iget-object v3, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v3}, Les/lj;->h(Les/lj;)Ljava/util/TimerTask;

    move-result-object v3

    const-wide/16 v4, 0xbb8

    invoke-virtual {v0, v3, v4, v5}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V
    :try_end_17
    .catch Ljava/lang/Exception; {:try_start_17 .. :try_end_17} :catch_7
    .catchall {:try_start_17 .. :try_end_17} :catchall_7

    goto :goto_13

    :catchall_7
    move-exception v0

    goto :goto_14

    :catch_7
    move-exception v0

    .line 81
    :try_start_18
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 82
    :cond_1b
    :goto_13
    monitor-exit v2

    goto :goto_15

    :goto_14
    monitor-exit v2
    :try_end_18
    .catchall {:try_start_18 .. :try_end_18} :catchall_7

    throw v0

    .line 83
    :cond_1c
    :goto_15
    throw v1

    :catch_8
    const/4 v4, 0x0

    :catch_9
    const/4 v11, 0x0

    :goto_16
    if-eqz v11, :cond_1f

    .line 84
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->c(Les/lj;)Ljava/lang/Object;

    move-result-object v1

    monitor-enter v1

    .line 85
    :try_start_19
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->f(Les/lj;)I

    .line 86
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->d(Les/lj;)I

    move-result v0

    if-nez v0, :cond_1d

    .line 87
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    new-instance v2, Les/lj$b$a;

    invoke-direct {v2, v7}, Les/lj$b$a;-><init>(Les/lj$b;)V

    invoke-static {v0, v2}, Les/lj;->a(Les/lj;Ljava/util/TimerTask;)Ljava/util/TimerTask;

    .line 88
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->i(Les/lj;)Ljava/util/Timer;

    move-result-object v0

    iget-object v2, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v2}, Les/lj;->h(Les/lj;)Ljava/util/TimerTask;

    move-result-object v2

    const-wide/16 v3, 0xbb8

    invoke-virtual {v0, v2, v3, v4}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V
    :try_end_19
    .catch Ljava/lang/Exception; {:try_start_19 .. :try_end_19} :catch_a
    .catchall {:try_start_19 .. :try_end_19} :catchall_8

    goto :goto_17

    :catchall_8
    move-exception v0

    goto :goto_18

    :catch_a
    move-exception v0

    .line 89
    :try_start_1a
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 90
    :cond_1d
    :goto_17
    monitor-exit v1

    goto :goto_1d

    :goto_18
    monitor-exit v1
    :try_end_1a
    .catchall {:try_start_1a .. :try_end_1a} :catchall_8

    throw v0

    :catch_b
    move-exception v0

    const/4 v4, 0x0

    :goto_19
    const/4 v11, 0x0

    :goto_1a
    :try_start_1b
    const-string v1, "500 Internal Server Error"

    .line 91
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "SERVER INTERNAL ERROR: IOException: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v7, v1, v0}, Les/lj$b;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_1b
    .catchall {:try_start_1b .. :try_end_1b} :catchall_9

    const/4 v1, 0x0

    throw v1

    :catchall_9
    if-eqz v11, :cond_1f

    .line 92
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->c(Les/lj;)Ljava/lang/Object;

    move-result-object v1

    monitor-enter v1

    .line 93
    :try_start_1c
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->f(Les/lj;)I

    .line 94
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->d(Les/lj;)I

    move-result v0

    if-nez v0, :cond_1e

    .line 95
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    new-instance v2, Les/lj$b$a;

    invoke-direct {v2, v7}, Les/lj$b$a;-><init>(Les/lj$b;)V

    invoke-static {v0, v2}, Les/lj;->a(Les/lj;Ljava/util/TimerTask;)Ljava/util/TimerTask;

    .line 96
    iget-object v0, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v0}, Les/lj;->i(Les/lj;)Ljava/util/Timer;

    move-result-object v0

    iget-object v2, v7, Les/lj$b;->b:Les/lj;

    invoke-static {v2}, Les/lj;->h(Les/lj;)Ljava/util/TimerTask;

    move-result-object v2

    const-wide/16 v3, 0xbb8

    invoke-virtual {v0, v2, v3, v4}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V
    :try_end_1c
    .catch Ljava/lang/Exception; {:try_start_1c .. :try_end_1c} :catch_c
    .catchall {:try_start_1c .. :try_end_1c} :catchall_a

    goto :goto_1b

    :catchall_a
    move-exception v0

    goto :goto_1c

    :catch_c
    move-exception v0

    .line 97
    :try_start_1d
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 98
    :cond_1e
    :goto_1b
    monitor-exit v1

    goto :goto_1d

    :goto_1c
    monitor-exit v1
    :try_end_1d
    .catchall {:try_start_1d .. :try_end_1d} :catchall_a

    throw v0

    :cond_1f
    :goto_1d
    return-void
.end method
